import axios from "~/axios";

export function getCategory() {
  return axios.get("/category");
}

export function createCategory(data) {
  return axios.post("/category", data);
}

export function updateCategory(id, data) {
  return axios.put("/category/" + id, data);
}

export function deleteCategory(id) {
  return axios.delete("/category/" + id);
}
